iLLD_TC29x  1.0
IfxPort.h File Reference

PORT basic functionality. More...

Go to the source code of this file.

Data Structures

struct  IfxPort_Pin
 Defines a pin. More...
 
struct  IfxPort_Pin_Config
 To configure pins. More...
 

Enumerations

enum  IfxPort_ControlledBy {
  IfxPort_ControlledBy_port = 0,
  IfxPort_ControlledBy_hsct = 1
}
 The LVDS RX_DIS control function can be selected from the Port (default) or HSCT module.declared in MODULE_PORTx.LPCRx. More...
 
enum  IfxPort_InputMode {
  IfxPort_InputMode_undefined = -1,
  IfxPort_InputMode_noPullDevice = 0 << 3,
  IfxPort_InputMode_pullDown = 1U << 3,
  IfxPort_InputMode_pullUp = 2U << 3
}
 Ifx_P output modification modes definition. More...
 
enum  IfxPort_Mode {
  IfxPort_Mode_inputNoPullDevice = 0,
  IfxPort_Mode_inputPullDown = 8U,
  IfxPort_Mode_inputPullUp = 0x10U,
  IfxPort_Mode_outputPushPullGeneral = 0x80U,
  IfxPort_Mode_outputPushPullAlt1 = 0x88U,
  IfxPort_Mode_outputPushPullAlt2 = 0x90U,
  IfxPort_Mode_outputPushPullAlt3 = 0x98U,
  IfxPort_Mode_outputPushPullAlt4 = 0xA0U,
  IfxPort_Mode_outputPushPullAlt5 = 0xA8U,
  IfxPort_Mode_outputPushPullAlt6 = 0xB0U,
  IfxPort_Mode_outputPushPullAlt7 = 0xB8U,
  IfxPort_Mode_outputOpenDrainGeneral = 0xC0U,
  IfxPort_Mode_outputOpenDrainAlt1 = 0xC8U,
  IfxPort_Mode_outputOpenDrainAlt2 = 0xD0U,
  IfxPort_Mode_outputOpenDrainAlt3 = 0xD8U,
  IfxPort_Mode_outputOpenDrainAlt4 = 0xE0U,
  IfxPort_Mode_outputOpenDrainAlt5 = 0xE8U,
  IfxPort_Mode_outputOpenDrainAlt6 = 0xF0U,
  IfxPort_Mode_outputOpenDrainAlt7 = 0xF8U
}
 Ifx_P input / output mode definition. More...
 
enum  IfxPort_OutputIdx {
  IfxPort_OutputIdx_general = 0x10U << 3,
  IfxPort_OutputIdx_alt1 = 0x11U << 3,
  IfxPort_OutputIdx_alt2 = 0x12U << 3,
  IfxPort_OutputIdx_alt3 = 0x13U << 3,
  IfxPort_OutputIdx_alt4 = 0x14U << 3,
  IfxPort_OutputIdx_alt5 = 0x15U << 3,
  IfxPort_OutputIdx_alt6 = 0x16U << 3,
  IfxPort_OutputIdx_alt7 = 0x17U << 3
}
 Pin output alternate index. More...
 
enum  IfxPort_OutputMode {
  IfxPort_OutputMode_pushPull = 0x10U << 3,
  IfxPort_OutputMode_openDrain = 0x18U << 3
}
 Pin output mode definition. More...
 
enum  IfxPort_PadDriver {
  IfxPort_PadDriver_cmosAutomotiveSpeed1 = 0,
  IfxPort_PadDriver_cmosAutomotiveSpeed2 = 1,
  IfxPort_PadDriver_cmosAutomotiveSpeed3 = 2,
  IfxPort_PadDriver_cmosAutomotiveSpeed4 = 3,
  IfxPort_PadDriver_lvdsSpeed1 = 4,
  IfxPort_PadDriver_lvdsSpeed2 = 5,
  IfxPort_PadDriver_lvdsSpeed3 = 6,
  IfxPort_PadDriver_lvdsSpeed4 = 7,
  IfxPort_PadDriver_ttlSpeed1 = 8,
  IfxPort_PadDriver_ttlSpeed2 = 9,
  IfxPort_PadDriver_ttlSpeed3 = 10,
  IfxPort_PadDriver_ttlSpeed4 = 11
}
 Pad driver mode definition (strength and slew rate). More...
 
enum  IfxPort_PadSupply {
  IfxPort_PadSupply_5v = 0,
  IfxPort_PadSupply_3v = 1
}
 MODULE_PORTx.LPCRx.B.PS1.Selects between 5v and 3.3v on Vext supply for the LVDSM pair. More...
 
enum  IfxPort_State {
  IfxPort_State_notChanged = (0 << 16) | (0 << 0),
  IfxPort_State_high = (0 << 16) | (1U << 0),
  IfxPort_State_low = (1U << 16) | (0 << 0),
  IfxPort_State_toggled = (1U << 16) | (1U << 0)
}
 Ifx_P output modification modes definition. More...
 

Functions

IFX_INLINE boolean IfxPort_getPinState (Ifx_P *port, uint8 pinIndex)
 Return the port state. More...
 
IFX_INLINE void IfxPort_setPinHigh (Ifx_P *port, uint8 pinIndex)
 Set the port output. More...
 
IFX_INLINE void IfxPort_setPinLow (Ifx_P *port, uint8 pinIndex)
 Reset the port output. More...
 
IFX_INLINE void IfxPort_setPinModeInput (Ifx_P *port, uint8 pinIndex, IfxPort_InputMode mode)
 Configure the port input / output mode. More...
 
IFX_INLINE void IfxPort_setPinModeOutput (Ifx_P *port, uint8 pinIndex, IfxPort_OutputMode mode, IfxPort_OutputIdx index)
 Configure the port input / output mode. More...
 
IFX_INLINE void IfxPort_setPinState (Ifx_P *port, uint8 pinIndex, IfxPort_State action)
 Set / Resets / Toggle the port output. More...
 
IFX_INLINE void IfxPort_togglePin (Ifx_P *port, uint8 pinIndex)
 Toggle the port output. More...
 
IFX_EXTERN boolean IfxPort_disableEmergencyStop (Ifx_P *port, uint8 pinIndex)
 Disable the emergency stop function. This function disables the emergency stop function. A check is done on port functionality. More...
 
IFX_EXTERN boolean IfxPort_enableEmergencyStop (Ifx_P *port, uint8 pinIndex)
 Enable the emergency stop function. This function enables the emergency stop function. A check is done on port functionality. More...
 
IFX_EXTERN void IfxPort_setPinMode (Ifx_P *port, uint8 pinIndex, IfxPort_Mode mode)
 Configure the port input / output mode. Also Configures the P40/P41 Port for digital functionality which bydefault support analog functionality. More...
 
IFX_EXTERN void IfxPort_setPinPadDriver (Ifx_P *port, uint8 pinIndex, IfxPort_PadDriver padDriver)
 Configure the pad driver mode. More...
 
IFX_INLINE uint32 IfxPort_getGroupState (Ifx_P *port, uint8 pinIndex, uint16 mask)
 Return the port group state. More...
 
IFX_INLINE void IfxPort_setGroupState (Ifx_P *port, uint8 pinIndex, uint16 mask, uint16 data)
 Set the port group state. More...
 
IFX_EXTERN sint32 IfxPort_getIndex (Ifx_P *port)
 Return port index within IfxModule_IndexMap (defined in IfxPort_cfg.c) More...
 
IFX_EXTERN void IfxPort_setGroupModeInput (Ifx_P *port, uint8 pinIndex, uint16 mask, IfxPort_InputMode mode)
 Set pin modes to input at the pin location specified by '1' by the mask. More...
 
IFX_EXTERN void IfxPort_setGroupModeOutput (Ifx_P *port, uint8 pinIndex, uint16 mask, IfxPort_OutputMode mode, IfxPort_OutputIdx index)
 Set pin modes to output at the pin location specified by '1' by the mask starting at pinIndex. More...
 
IFX_EXTERN void IfxPort_setGroupPadDriver (Ifx_P *port, uint8 pinIndex, uint16 mask, IfxPort_PadDriver padDriver)
 Set pad driver strength at the pin location specified by '1' by the mask. More...
 
IFX_EXTERN void IfxPort_setPinModeLvdsMedium (Ifx_P *port, uint8 pinIndex, IfxPort_PadDriver lvdsPadDriver, IfxPort_PadSupply padSupply)
 set LVDSM mode More...
 
IFX_EXTERN void IfxPort_setPinModeLvdsHigh (Ifx_P *port, uint8 pinIndex, IfxPort_Mode mode, IfxPort_ControlledBy enablePortControlled)
 set LVDSH mode (configured for Port21) More...
 
IFX_EXTERN void IfxPort_resetESR (Ifx_P *port, uint8 pinIndex)
 Disable the emergency stop function. This function disables the emergency stop function. No check is done on port functionality. More...
 
IFX_EXTERN void IfxPort_setESR (Ifx_P *port, uint8 pinIndex)
 Enable the emergency stop function. This function enables the emergency stop function. No check is done on port functionality. More...
 

Detailed Description

PORT basic functionality.

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 IfxPort.h.

Function Documentation

IFX_EXTERN void IfxPort_resetESR ( Ifx_P *  port,
uint8  pinIndex 
)

Disable the emergency stop function. This function disables the emergency stop function. No check is done on port functionality.

Parameters
portPointer to the port which should be accessed.
pinIndexSpecifies the pin for which the emergency stop function should be disabled.
Returns
None
See Also
IfxPort_disableEmergencyStop()

Definition at line 96 of file IfxPort.c.

Referenced by IfxPort_disableEmergencyStop().

IFX_EXTERN void IfxPort_setESR ( Ifx_P *  port,
uint8  pinIndex 
)

Enable the emergency stop function. This function enables the emergency stop function. No check is done on port functionality.

Parameters
portPointer to the port which should be accessed.
pinIndexSpecifies the pin for which the emergency stop function should be enabled.
Returns
None
See Also
IfxPort_enableEmergencyStop()

Definition at line 106 of file IfxPort.c.

Referenced by IfxPort_enableEmergencyStop().