iLLD_TC27xC  1.0
IfxI2c_PinMap.h
Go to the documentation of this file.
1 /**
2  * \file IfxI2c_PinMap.h
3  * \brief I2C I/O map
4  * \ingroup IfxLld_I2c
5  *
6  * \version iLLD_0_1_0_10
7  * \copyright Copyright (c) 2013 Infineon Technologies AG. All rights reserved.
8  *
9  *
10  * IMPORTANT NOTICE
11  *
12  *
13  * Infineon Technologies AG (Infineon) is supplying this file for use
14  * exclusively with Infineon's microcontroller products. This file can be freely
15  * distributed within development tools that are supporting such microcontroller
16  * products.
17  *
18  * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
19  * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
20  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
21  * INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL,
22  * OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
23  *
24  * \defgroup IfxLld_I2c_pinmap I2C Pin Mapping
25  * \ingroup IfxLld_I2c
26  */
27 
28 #ifndef IFXI2C_PINMAP_H
29 #define IFXI2C_PINMAP_H
30 
31 #include <_Reg/IfxI2c_reg.h>
32 #include <_Impl/IfxI2c_cfg.h>
33 #include <Port/Std/IfxPort.h>
34 
35 /** \addtogroup IfxLld_I2c_pinmap
36  * \{ */
37 
38 /** \brief SCL input mapping structure */
39 typedef const struct
40 {
41  Ifx_I2C* module; /**< \brief Base address */
42  IfxPort_Pin pin; /**< \brief Port pin */
43  Ifx_RxSel inSelect; /**< \brief Input multiplexer value */
44  IfxPort_OutputIdx outSelect; /**< \brief Port control code */
46 
47 /** \brief SDA input mapping structure */
48 typedef const struct
49 {
50  Ifx_I2C* module; /**< \brief Base address */
51  IfxPort_Pin pin; /**< \brief Port pin */
52  Ifx_RxSel inSelect; /**< \brief Input multiplexer value */
53  IfxPort_OutputIdx outSelect; /**< \brief Port control code */
55 
56 IFX_EXTERN IfxI2c_Scl_InOut IfxI2c0_SCL_P02_5_INOUT; /**< \brief I2C0_SCL: I2C0 output and input */
57 IFX_EXTERN IfxI2c_Scl_InOut IfxI2c0_SCL_P13_1_INOUT; /**< \brief I2C0_SCL: I2C0 output and input */
58 IFX_EXTERN IfxI2c_Scl_InOut IfxI2c0_SCL_P15_4_INOUT; /**< \brief I2C0_SCL: I2C0 output and input */
59 IFX_EXTERN IfxI2c_Sda_InOut IfxI2c0_SDA_P02_4_INOUT; /**< \brief I2C0_SDA: I2C0 output and input */
60 IFX_EXTERN IfxI2c_Sda_InOut IfxI2c0_SDA_P13_2_INOUT; /**< \brief I2C0_SDA: I2C0 output and input */
61 IFX_EXTERN IfxI2c_Sda_InOut IfxI2c0_SDA_P15_5_INOUT; /**< \brief I2C0_SDA: I2C0 output and input */
62 
63 /** \brief Table dimensions */
64 #define IFXI2C_PINMAP_NUM_MODULES 1
65 #define IFXI2C_PINMAP_SCL_INOUT_NUM_ITEMS 3
66 #define IFXI2C_PINMAP_SDA_INOUT_NUM_ITEMS 3
67 
68 
69 /** \brief IfxI2c_Scl_InOut table */
71 
72 /** \brief IfxI2c_Sda_InOut table */
74 
75 /** \} */
76 
77 #endif /* IFXI2C_PINMAP_H */