lin_commontl_proto.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-2016, Freescale Semiconductor, Inc.
3  * Copyright 2016 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  */
18 
19 #ifndef LIN_COMMONTL_PROTO_H
20 #define LIN_COMMONTL_PROTO_H
21 
22 #include "lin.h"
23 #if (SUPPORT_TRANSPORT_LAYER == 1U)
24 /*******************************************************************************
25  * Definitions
26  ******************************************************************************/
27 /* PCI type */
28 #define PCI_SF 0x00U
29 #define PCI_FF 0x01U
30 #define PCI_CF 0x02U
32 /* COMMON FUNCTIONS */
33 /*
34  * @brief Copy the specified raw data to the specified queue.
35  *
36  * @param[in] iii Interface name
37  * @param[in] data Buffer for the data
38  * @param[in] *queue Queue for containing data
39  * @param[in] direction Direction
40  * @return void
41  */
42 void tl_put_raw(l_ifc_handle iii,
43  const l_u8 * const data,
45  l_u8 direction);
46 
47 /*
48  * @brief Get the raw data from the specified queue to
49  * the specified raw data
50  *
51  * @param[in] iii Interface name
52  * @param[in] data Buffer for the data
53  * @param[in] *queue Queue for containing data
54  * @param[in] direction Direction
55  * @return void
56  */
57 void tl_get_raw(l_ifc_handle iii,
58  l_u8 * const data,
60  l_u8 direction);
61 
62 #endif /*end (SUPPORT_TRANSPORT_LAYER == 1U) */
63 #endif /* End of LIN_COMMONTL_PROTO_H */
64 
67 /******************************************************************************/
68 /* EOF */
69 /******************************************************************************/
Transport layer queue Implements : lin_transport_layer_queue_t_Class.
Definition: lin.h:437
unsigned char l_u8
Unsigned 8 bit integer Implements : l_u8_Class.
Definition: lin_types.h:30
void tl_put_raw(l_ifc_handle iii, const l_u8 *const data, lin_transport_layer_queue_t *queue, l_u8 direction)
void tl_get_raw(l_ifc_handle iii, l_u8 *const data, lin_transport_layer_queue_t *queue, l_u8 direction)