iLLD_TC27xD  1.0
IfxCpu_Intrinsics.h File Reference
#include "Ifx_Types.h"

Go to the source code of this file.

Macros

#define IFX_ALIGN_8   (1)
 
#define IFX_ALIGN_16   (2)
 
#define IFX_ALIGN_32   (4)
 
#define IFX_ALIGN_64   (8)
 
#define IFX_ALIGN_256   (32)
 
#define Ifx_AlignOn256(Size)   ((((Size) + (IFX_ALIGN_256 - 1)) & (~(IFX_ALIGN_256 - 1))))
 
#define Ifx_AlignOn64(Size)   ((((Size) + (IFX_ALIGN_64 - 1)) & (~(IFX_ALIGN_64 - 1))))
 
#define Ifx_AlignOn32(Size)   ((((Size) + (IFX_ALIGN_32 - 1)) & (~(IFX_ALIGN_32 - 1))))
 
#define Ifx_AlignOn16(Size)   ((((Size) + (IFX_ALIGN_16 - 1)) & (~(IFX_ALIGN_16 - 1))))
 
#define Ifx_AlignOn8(Size)   ((((Size) + (IFX_ALIGN_8 - 1)) & (~(IFX_ALIGN_8 - 1))))
 
#define Ifx_COUNTOF(x)   (sizeof(x) / sizeof(x[0]))
 
#define IFX_VECTOR_CPU0   (0)
 
#define IFX_VECTOR_CPU1   (1)
 
#define IFX_VECTOR_CPU2   (2)
 
#define IFX_VECTOR_CPU3   (3)
 
#define IFX_VECTOR_CPU4   (4)
 
#define IFX_VECTOR_CPU5   (5)
 

Functions

IFX_INLINE void * __cx_to_addr (uint32 cx)
 
IFX_INLINE uint32 __addr_to_cx (void *addr)
 
IFX_INLINE void __ldmst_c (volatile void *address, unsigned mask, unsigned value)
 
IFX_INLINE uint32 __ld32 (void *addr)
 
IFX_INLINE void __st32 (void *addr, uint32 value)
 
IFX_INLINE uint64 __ld64 (void *addr)
 
IFX_INLINE void __st64 (void *addr, uint64 value)
 
IFX_INLINE void __ld64_lu (void *addr, uint32 *valueLower, uint32 *valueUpper)
 
IFX_INLINE void __st64_lu (void *addr, uint32 valueLower, uint32 valueUpper)
 

Detailed Description

Version
iLLD_1_0_0_11_0
                            IMPORTANT NOTICE

Infineon Technologies AG (Infineon) is supplying this file for use exclusively with Infineon's microcontroller products. This file can be freely distributed within development tools that are supporting such microcontroller products.

THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.

Definition in file IfxCpu_Intrinsics.h.

Macro Definition Documentation

#define IFX_ALIGN_16   (2)

Definition at line 46 of file IfxCpu_Intrinsics.h.

#define IFX_ALIGN_256   (32)

Definition at line 49 of file IfxCpu_Intrinsics.h.

#define IFX_ALIGN_32   (4)

Definition at line 47 of file IfxCpu_Intrinsics.h.

#define IFX_ALIGN_64   (8)

Definition at line 48 of file IfxCpu_Intrinsics.h.

#define IFX_ALIGN_8   (1)

Definition at line 45 of file IfxCpu_Intrinsics.h.

#define Ifx_AlignOn16 (   Size)    ((((Size) + (IFX_ALIGN_16 - 1)) & (~(IFX_ALIGN_16 - 1))))

Definition at line 54 of file IfxCpu_Intrinsics.h.

#define Ifx_AlignOn256 (   Size)    ((((Size) + (IFX_ALIGN_256 - 1)) & (~(IFX_ALIGN_256 - 1))))

Definition at line 51 of file IfxCpu_Intrinsics.h.

#define Ifx_AlignOn32 (   Size)    ((((Size) + (IFX_ALIGN_32 - 1)) & (~(IFX_ALIGN_32 - 1))))

Definition at line 53 of file IfxCpu_Intrinsics.h.

Referenced by Ifx_Fifo_create(), Ifx_Fifo_init(), and IfxCif_Cam_calcMem().

#define Ifx_AlignOn64 (   Size)    ((((Size) + (IFX_ALIGN_64 - 1)) & (~(IFX_ALIGN_64 - 1))))

Definition at line 52 of file IfxCpu_Intrinsics.h.

Referenced by Ifx_Fifo_init().

#define Ifx_AlignOn8 (   Size)    ((((Size) + (IFX_ALIGN_8 - 1)) & (~(IFX_ALIGN_8 - 1))))

Definition at line 55 of file IfxCpu_Intrinsics.h.

#define Ifx_COUNTOF (   x)    (sizeof(x) / sizeof(x[0]))
#define IFX_VECTOR_CPU0   (0)

Definition at line 144 of file IfxCpu_Intrinsics.h.

#define IFX_VECTOR_CPU1   (1)

Definition at line 145 of file IfxCpu_Intrinsics.h.

#define IFX_VECTOR_CPU2   (2)

Definition at line 146 of file IfxCpu_Intrinsics.h.

#define IFX_VECTOR_CPU3   (3)

Definition at line 147 of file IfxCpu_Intrinsics.h.

#define IFX_VECTOR_CPU4   (4)

Definition at line 148 of file IfxCpu_Intrinsics.h.

#define IFX_VECTOR_CPU5   (5)

Definition at line 149 of file IfxCpu_Intrinsics.h.

Function Documentation

IFX_INLINE uint32 __addr_to_cx ( void *  addr)

Convert address pointer to context pointer

Parameters
[in]addraddress pointer
Returns
context pointer

Definition at line 76 of file IfxCpu_Intrinsics.h.

IFX_INLINE void* __cx_to_addr ( uint32  cx)

Convert context pointer to address pointer

Parameters
[in]cxcontext pointer
Returns
address pointer

Definition at line 65 of file IfxCpu_Intrinsics.h.

IFX_INLINE uint32 __ld32 ( void *  addr)

32bit load operation

Definition at line 94 of file IfxCpu_Intrinsics.h.

IFX_INLINE uint64 __ld64 ( void *  addr)

64bit load operation

Definition at line 110 of file IfxCpu_Intrinsics.h.

Referenced by __ld64_lu().

IFX_INLINE void __ld64_lu ( void *  addr,
uint32 valueLower,
uint32 valueUpper 
)

64bit load operation which returns the lower and upper 32bit word

Definition at line 126 of file IfxCpu_Intrinsics.h.

IFX_INLINE void __st32 ( void *  addr,
uint32  value 
)

32bit store operation

Definition at line 102 of file IfxCpu_Intrinsics.h.

IFX_INLINE void __st64 ( void *  addr,
uint64  value 
)

64bit store operation

Definition at line 118 of file IfxCpu_Intrinsics.h.

Referenced by __st64_lu().

IFX_INLINE void __st64_lu ( void *  addr,
uint32  valueLower,
uint32  valueUpper 
)

64bit store operation which stores a lower and upper 32bit word

Definition at line 137 of file IfxCpu_Intrinsics.h.

Referenced by IfxFlash_loadPage().