AM64x MCU+ SDK  08.02.00
PN_Handle.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 Texas Instruments Incorporated
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
33 #ifndef PN_HANDLE_H_
34 #define PN_HANDLE_H_
35 
36 /* ========================================================================== */
37 /* Include Files */
38 /* ========================================================================== */
39 
40 /* ========================================================================== */
41 /* Handle Definition */
42 /* ========================================================================== */
43 #include <stdint.h>
44 #include <kernel/dpl/HwiP.h>
45 
46 /* ========================================================================== */
47 /* Handle Declarations */
48 /* ========================================================================== */
49 
50 /*
51 * \brief PN_IntAttrs
52 * Structure storing the interrupt configurations
53 */
54 typedef struct PN_IntAttrs_s
55 {
58  uint32_t pruIntNum;
60  uint32_t coreIntNum;
62  uint32_t socEvId;
64  uint32_t intPrio;
66  void *args;
68  void *isrFnPtr;
70  void *callBackPtr;
71 } PN_IntAttrs;
72 
73 /*
74 * \brief PN_IntConfig
75 * Structure storing the different interrupt configurations of Profinet
76 */
77 typedef struct PN_IntConfig_s
78 {
87 #ifdef ENABLE_LATCH_SUPPORT
88 
89  PN_IntAttrs latchIntConfig;
90 #endif
91 } PN_IntConfig;
92 
96 typedef struct PN_Config_s *PN_Handle;
97 
98 #endif /* PN_HANDLE_H_ */
PN_IntAttrs::intPrio
uint32_t intPrio
Definition: PN_Handle.h:64
PN_IntConfig
Definition: PN_Handle.h:78
PN_IntAttrs::callBackPtr
void * callBackPtr
Definition: PN_Handle.h:70
PN_IntAttrs::isrFnPtr
void * isrFnPtr
Definition: PN_Handle.h:68
PN_Handle
struct PN_Config_s * PN_Handle
Alias for Profinet Handle containing base addresses and modules.
Definition: PN_Handle.h:96
PN_IntAttrs::coreIntNum
uint32_t coreIntNum
Definition: PN_Handle.h:60
PN_IntAttrs::pruIntNum
uint32_t pruIntNum
Definition: PN_Handle.h:58
PN_IntAttrs::socEvId
uint32_t socEvId
Definition: PN_Handle.h:62
PN_IntAttrs::args
void * args
Definition: PN_Handle.h:66
HwiP.h
PN_IntConfig::ptcpIntConfig
PN_IntAttrs ptcpIntConfig
Definition: PN_Handle.h:86
PN_IntAttrs
Definition: PN_Handle.h:55
PN_IntConfig::dhtIntConfig
PN_IntAttrs dhtIntConfig
Definition: PN_Handle.h:84
PN_IntConfig::cpmIntConfig
PN_IntAttrs cpmIntConfig
Definition: PN_Handle.h:82
HwiP_Object
Opaque Hwi object used with the Hwi APIs.
Definition: HwiP.h:91
PN_IntConfig::ppmIntConfig
PN_IntAttrs ppmIntConfig
Definition: PN_Handle.h:80
PN_IntAttrs::interruptObject
HwiP_Object interruptObject
Definition: PN_Handle.h:56