iLLD_TC26x
1.0
iLLD_TC26x
IFX Low Level Drivers
Modules
Data Structures
Files
File List
Assert.c
Assert.h
Bsp.c
Bsp.h
CompilerDcc.c
CompilerDcc.h
CompilerGnuc.c
CompilerGnuc.h
Compilers.h
CompilerTasking.c
CompilerTasking.h
Icu.h
Ifx_Assert.h
Ifx_CircularBuffer.asm.c
Ifx_CircularBuffer.c
Ifx_CircularBuffer.h
Ifx_Console.c
Ifx_Console.h
Ifx_DateTime.c
Ifx_DateTime.h
Ifx_Fifo.c
Ifx_Fifo.h
Ifx_GlobalResources.c
Ifx_GlobalResources.h
Ifx_InternalMux.c
Ifx_InternalMux.h
Ifx_LowPassPt1.c
Ifx_LowPassPt1.h
Ifx_Shell.c
Ifx_Shell.h
Ifx_Types.h
Ifx_TypesDcc.h
Ifx_TypesGnuc.h
Ifx_TypesTasking.h
IfxAsclin.c
IfxAsclin.h
IfxAsclin_Asc.c
IfxAsclin_Asc.h
IfxAsclin_cfg.h
IfxAsclin_Lin.c
IfxAsclin_Lin.h
IfxAsclin_PinMap.c
IfxAsclin_PinMap.h
IfxAsclin_Spi.c
IfxAsclin_Spi.h
IfxCcu6.c
IfxCcu6.h
IfxCcu6_cfg.c
IfxCcu6_cfg.h
IfxCcu6_Icu.c
IfxCcu6_Icu.h
IfxCcu6_PinMap.c
IfxCcu6_PinMap.h
IfxCcu6_PwmBc.c
IfxCcu6_PwmBc.h
IfxCcu6_PwmHl.c
IfxCcu6_PwmHl.h
IfxCcu6_Timer.c
IfxCcu6_Timer.h
IfxCcu6_TimerWithTrigger.c
IfxCcu6_TimerWithTrigger.h
IfxCcu6_TPwm.c
IfxCcu6_TPwm.h
IfxCif.c
IfxCif.h
IfxCif_Cam.c
IfxCif_Cam.h
IfxCif_cfg.c
IfxCif_cfg.h
IfxCif_PinMap.c
IfxCif_PinMap.h
IfxCpu.c
IfxCpu.h
IfxCpu_cfg.c
IfxCpu_cfg.h
IfxCpu_CStart.h
IfxCpu_CStart0.c
IfxCpu_CStart1.c
IfxCpu_Intrinsics.h
IfxCpu_IntrinsicsDcc.h
IfxCpu_IntrinsicsGnuc.h
IfxCpu_IntrinsicsTasking.h
IfxCpu_Irq.c
IfxCpu_Irq.h
IfxCpu_Trap.c
IfxCpu_Trap.h
IfxDma.c
IfxDma.h
IfxDma_cfg.c
IfxDma_cfg.h
IfxDma_Dma.c
IfxDma_Dma.h
IfxDsadc.c
IfxDsadc.h
IfxDsadc_cfg.h
IfxDsadc_Dsadc.c
IfxDsadc_Dsadc.h
IfxDsadc_PinMap.c
IfxDsadc_PinMap.h
IfxDts.c
IfxDts.h
IfxDts_cfg.h
IfxDts_Dts.c
IfxDts_Dts.h
IfxEmem.c
IfxEmem.h
IfxEmem_cfg.h
IfxEray.c
IfxEray.h
IfxEray_cfg.h
IfxEray_Eray.c
IfxEray_Eray.h
IfxEray_PinMap.c
IfxEray_PinMap.h
IfxEth.c
IfxEth.h
IfxEth_cfg.h
IfxEth_Phy_Pef7071.c
IfxEth_Phy_Pef7071.h
IfxEth_PinMap.c
IfxEth_PinMap.h
IfxFce.c
IfxFce.h
IfxFce_cfg.h
IfxFce_Crc.c
IfxFce_Crc.h
IfxFft.c
IfxFft.h
IfxFft_cfg.h
IfxFft_Fft.c
IfxFft_Fft.h
IfxFlash.c
IfxFlash.h
IfxFlash_cfg.c
IfxFlash_cfg.h
IfxGlobal_cfg.h
IfxGpt12.c
IfxGpt12.h
IfxGpt12_cfg.h
IfxGpt12_IncrEnc.c
IfxGpt12_IncrEnc.h
IfxGpt12_PinMap.c
IfxGpt12_PinMap.h
IfxGtm.c
IfxGtm.h
IfxGtm_Atom.c
IfxGtm_Atom.h
IfxGtm_Atom_Pwm.c
IfxGtm_Atom_Pwm.h
IfxGtm_Atom_PwmHl.c
IfxGtm_Atom_PwmHl.h
IfxGtm_Atom_Timer.c
IfxGtm_Atom_Timer.h
IfxGtm_cfg.h
IfxGtm_Cmu.c
IfxGtm_Cmu.h
IfxGtm_Dpll.c
IfxGtm_Dpll.h
IfxGtm_PinMap.c
IfxGtm_PinMap.h
IfxGtm_Tbu.c
IfxGtm_Tbu.h
IfxGtm_Tim.c
IfxGtm_Tim.h
IfxGtm_Tom.c
IfxGtm_Tom.h
IfxGtm_Tom_Pwm.c
IfxGtm_Tom_Pwm.h
IfxGtm_Tom_PwmHl.c
IfxGtm_Tom_PwmHl.h
IfxGtm_Tom_Timer.c
IfxGtm_Tom_Timer.h
IfxGtm_Trig.c
IfxGtm_Trig.h
IfxHssl.c
IfxHssl.h
IfxHssl_cfg.h
IfxHssl_Hssl.c
IfxHssl_Hssl.h
IfxI2c.c
IfxI2c.h
IfxI2c_cfg.h
IfxI2c_I2c.c
IfxI2c_I2c.h
IfxI2c_PinMap.c
IfxI2c_PinMap.h
IfxIom.c
IfxIom.h
IfxIom_cfg.h
IfxIom_Iom.c
IfxIom_Iom.h
IfxLldVersion.h
IfxMsc.c
IfxMsc.h
IfxMsc_cfg.c
IfxMsc_cfg.h
IfxMsc_Msc.c
IfxMsc_Msc.h
IfxMsc_PinMap.c
IfxMsc_PinMap.h
IfxMtu.c
IfxMtu.h
IfxMtu_cfg.c
IfxMtu_cfg.h
IfxMultican.c
IfxMultican.h
IfxMultican_Can.c
IfxMultican_Can.h
IfxMultican_cfg.c
IfxMultican_cfg.h
IfxMultican_PinMap.c
IfxMultican_PinMap.h
IfxPort.c
IfxPort.h
IfxPort_cfg.c
IfxPort_cfg.h
IfxPort_Io.c
IfxPort_Io.h
IfxPort_PinMap.c
IfxPort_PinMap.h
IfxPsi5.c
IfxPsi5.h
IfxPsi5_cfg.c
IfxPsi5_cfg.h
IfxPsi5_PinMap.c
IfxPsi5_PinMap.h
IfxPsi5_Psi5.c
IfxPsi5_Psi5.h
IfxPsi5s.c
IfxPsi5s.h
IfxPsi5s_cfg.h
IfxPsi5s_PinMap.c
IfxPsi5s_PinMap.h
IfxPsi5s_Psi5s.c
IfxPsi5s_Psi5s.h
IfxQspi.c
IfxQspi.h
IfxQspi_cfg.h
IfxQspi_PinMap.c
IfxQspi_PinMap.h
IfxQspi_SpiMaster.c
IfxQspi_SpiMaster.h
IfxQspi_SpiSlave.c
IfxQspi_SpiSlave.h
IfxScu_cfg.c
IfxScu_cfg.h
IfxScu_PinMap.c
IfxScu_PinMap.h
IfxScuCcu.c
IfxScuCcu.h
IfxScuEru.c
IfxScuEru.h
IfxScuWdt.asm.h
IfxScuWdt.c
IfxScuWdt.h
IfxSent.c
IfxSent.h
IfxSent_cfg.c
IfxSent_cfg.h
IfxSent_PinMap.c
IfxSent_PinMap.h
IfxSent_Sent.c
IfxSent_Sent.h
IfxSmu_PinMap.c
IfxSmu_PinMap.h
IfxSrc.c
IfxSrc.h
IfxSrc_cfg.c
IfxSrc_cfg.h
IfxStdIf.h
IfxStdIf_DPipe.c
IfxStdIf_DPipe.h
IfxStdIf_Pos.c
IfxStdIf_Pos.h
IfxStdIf_PwmHl.c
IfxStdIf_PwmHl.h
IfxStdIf_Timer.c
IfxStdIf_Timer.h
IfxStm.c
IfxStm.h
IfxStm_cfg.c
IfxStm_cfg.h
IfxVadc.c
IfxVadc.h
IfxVadc_Adc.c
IfxVadc_Adc.h
IfxVadc_cfg.c
IfxVadc_cfg.h
IfxVadc_PinMap.c
IfxVadc_PinMap.h
lld_api.c
lld_codingRules.c
lld_codingRules_codeFormating.c
lld_codingRules_commonApis.c
lld_codingRules_if.c
lld_conventions.c
lld_conventionsDoxygen.c
lld_dosanddont.c
lld_dosanddont_enumUsage.c
lld_dosanddont_namingConvention.c
lld_dosanddont_optimisation.c
lld_filesAndConfig.c
lld_structure.c
lld_versioning.c
mainpage.c
Platform_Types.h
PwmHl.h
SpiIf.c
SpiIf.h
Timer.h
TPwm.h
Globals
IfxEmem.h
Go to the documentation of this file.
1
/**
2
* \file IfxEmem.h
3
* \brief EMEM basic functionality
4
* \ingroup IfxLld_Emem
5
*
6
* \version iLLD_1_0_0_11_0
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_Emem_Std_Enumerations Enumerations
25
* \ingroup IfxLld_Emem_Std
26
* \defgroup IfxLld_Emem_Std_Module Module Functions
27
* \ingroup IfxLld_Emem_Std
28
*/
29
30
#ifndef IFXEMEM_H
31
#define IFXEMEM_H 1
32
33
/******************************************************************************/
34
/*----------------------------------Includes----------------------------------*/
35
/******************************************************************************/
36
37
#include "
_Impl/IfxEmem_cfg.h
"
38
#include "IfxEmem_reg.h"
39
40
/******************************************************************************/
41
/*--------------------------------Enumerations--------------------------------*/
42
/******************************************************************************/
43
44
/** \addtogroup IfxLld_Emem_Std_Enumerations
45
* \{ */
46
/** \brief EMEM lock state defined in MODULE_EMEM.SBRCTR.B.STBLOCK.
47
*/
48
typedef
enum
49
{
50
IfxEmem_LockedState_locked
= 0,
/**< \brief EMEM locked state. */
51
IfxEmem_LockedState_unlocked
= 1
/**< \brief EMEM unlocked state. */
52
}
IfxEmem_LockedState
;
53
54
/** \brief EMEM module clock enabled or disabled state defined in MODULE_EMEM.CLC.B.DISR.
55
*/
56
typedef
enum
57
{
58
IfxEmem_State_disabled
= 0,
/**< \brief EMEM module clock disabled state. */
59
IfxEmem_State_enabled
= 1
/**< \brief EMEM module clock enabled state. */
60
}
IfxEmem_State
;
61
62
/** \brief EMEM tile configuration mode defined in MODULE_EMEM.TILECONFIG.B.Tx( x = 0,1,..).
63
*/
64
typedef
enum
65
{
66
IfxEmem_TileConfigMode_calibMode
= 0
/**< \brief EMEM tile mode to calibration memory. */
67
}
IfxEmem_TileConfigMode
;
68
69
/** \brief Tile Number
70
*/
71
typedef
enum
72
{
73
IfxEmem_TileNumber_0
= 0,
/**< \brief Tile Number0 */
74
IfxEmem_TileNumber_1
,
/**< \brief Tile Number1 */
75
IfxEmem_TileNumber_2
,
/**< \brief Tile Number2 */
76
IfxEmem_TileNumber_3
,
/**< \brief Tile Number3 */
77
IfxEmem_TileNumber_4
,
/**< \brief Tile Number4 */
78
IfxEmem_TileNumber_5
,
/**< \brief Tile Number5 */
79
IfxEmem_TileNumber_6
,
/**< \brief Tile Number6 */
80
IfxEmem_TileNumber_7
,
/**< \brief Tile Number7 */
81
IfxEmem_TileNumber_8
,
/**< \brief Tile Number8 */
82
IfxEmem_TileNumber_9
,
/**< \brief Tile Number9 */
83
IfxEmem_TileNumber_10
,
/**< \brief Tile Number10 */
84
IfxEmem_TileNumber_11
,
/**< \brief Tile Number11 */
85
IfxEmem_TileNumber_12
,
/**< \brief Tile Number12 */
86
IfxEmem_TileNumber_13
,
/**< \brief Tile Number13 */
87
IfxEmem_TileNumber_14
,
/**< \brief Tile Number14 */
88
IfxEmem_TileNumber_15
/**< \brief Tile Number15 */
89
}
IfxEmem_TileNumber
;
90
91
/** \} */
92
93
/** \addtogroup IfxLld_Emem_Std_Module
94
* \{ */
95
96
/******************************************************************************/
97
/*-------------------------Inline Function Prototypes-------------------------*/
98
/******************************************************************************/
99
100
/** \brief Returns the status of module enabled or disabled
101
* \return Status (TRUE / FALSE)
102
*/
103
IFX_INLINE
boolean
IfxEmem_isModuleEnabled
(
void
);
104
105
/** \brief Sets all EMEM tiles to calibration memory mode.
106
* \param mode EMEM tile configuration mode.
107
* \param tile tile number
108
* \return None
109
*/
110
IFX_INLINE
void
IfxEmem_setTileConfigMode
(
const
IfxEmem_TileConfigMode
mode,
IfxEmem_TileNumber
tile);
111
112
/** \brief Sets Unlock standby lock flag.
113
* \param flag Unlock standby lock flag value.
114
* \return None
115
*/
116
IFX_INLINE
void
IfxEmem_setUnlockStandbyLockFlag
(
const
uint8
flag);
117
118
/******************************************************************************/
119
/*-------------------------Global Function Prototypes-------------------------*/
120
/******************************************************************************/
121
122
/** \brief Gets the EMEM stand RAM lock state.
123
* \return EMEM stand RAM lock state.
124
*/
125
IFX_EXTERN
IfxEmem_LockedState
IfxEmem_getLockedState
(
void
);
126
127
/** \brief Enable or disable state of the EMEM module clock.
128
* \param state EMEM module clock enabled or disabled state.
129
* \return None
130
*/
131
IFX_EXTERN
void
IfxEmem_setClockEnableState
(
const
IfxEmem_State
state);
132
133
/** \} */
134
135
/******************************************************************************/
136
/*---------------------Inline Function Implementations------------------------*/
137
/******************************************************************************/
138
139
IFX_INLINE
boolean
IfxEmem_isModuleEnabled
(
void
)
140
{
141
return
(MODULE_EMEM.CLC.B.DISS == 0) ?
TRUE
:
FALSE
;
142
}
143
144
145
IFX_INLINE
void
IfxEmem_setTileConfigMode
(
const
IfxEmem_TileConfigMode
mode,
IfxEmem_TileNumber
tile)
146
{
147
MODULE_EMEM.TILECONFIG.U = (mode << tile);
148
}
149
150
151
IFX_INLINE
void
IfxEmem_setUnlockStandbyLockFlag
(
const
uint8
flag)
152
{
153
if
(8 > flag)
154
{
155
MODULE_EMEM.SBRCTR.B.STBULK = flag;
156
}
157
}
158
159
160
#endif
/* IFXEMEM_H */
home
mclld
Libraries
release
iLLD_1_0_0_11_0
src
ifx
TC26x
Emem
Std
IfxEmem.h
Generated by
1.8.4