lin_lin21_proto.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-2016, Freescale Semiconductor, Inc.
3  * Copyright 2016-2017 NXP
4  * All rights reserved.
5  *
6  * THIS SOFTWARE IS PROVIDED BY NXP "AS IS" AND ANY EXPRESSED OR
7  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
8  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
9  * IN NO EVENT SHALL NXP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
10  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
11  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
12  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
13  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
14  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
15  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
16  * THE POSSIBILITY OF SUCH DAMAGE.
17  */
28 #ifndef LIN_LIN21_PROTO_H
29 #define LIN_LIN21_PROTO_H
30 
36 #include "lin.h"
37 
38 /*******************************************************************************
39  * API
40  ******************************************************************************/
41 #if (SUPPORT_MASTER_MODE == 1U)
42 
49 void lin_collision_resolve(l_ifc_handle iii,
50  l_u8 pid);
51 
52 #endif /* End (SUPPORT_MASTER_MODE == 1U) */
53 
61 void lin_update_word_status_lin21(l_ifc_handle iii,
62  lin_lld_event_id_t event_id);
63 
64 #if (SUPPORT_SLAVE_MODE == 1U)
65 
72 void lin_update_err_signal(l_ifc_handle iii,
73  l_u8 frm_id);
74 
82 void lin_make_res_evnt_frame(l_ifc_handle iii,
83  l_u8 pid);
84 
85 #endif /* End (SUPPORT_SLAVE_MODE == 1U) */
86 
95 void lin_update_rx_evnt_frame(l_ifc_handle iii,
96  l_u8 pid);
97 
98 #endif /* LIN_LIN21_PROTO_H */
99 
101 /******************************************************************************/
102 /* EOF */
103 /******************************************************************************/
void lin_make_res_evnt_frame(l_ifc_handle iii, l_u8 pid)
This function packs signals associated with event trigger frame into buffer.
void lin_collision_resolve(l_ifc_handle iii, l_u8 pid)
Switch to collision resolve table.
void lin_update_word_status_lin21(l_ifc_handle iii, lin_lld_event_id_t event_id)
Update node status flags.
void lin_update_err_signal(l_ifc_handle iii, l_u8 frm_id)
Update error signal.
unsigned char l_u8
Unsigned 8 bit integer Implements : l_u8_Class.
Definition: lin_types.h:30
void lin_update_rx_evnt_frame(l_ifc_handle iii, l_u8 pid)
The function updates the receive flags associated with signals/frames in case receive an event trigge...
lin_lld_event_id_t
Event id Implements : lin_lld_event_id_t_Class.
Definition: lin.h:109