iLLD_TC27xD  1.0
Group Access Functions
Collaboration diagram for Group Access Functions:

Functions

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

Detailed Description

Function Documentation

IFX_INLINE uint32 IfxPort_getGroupState ( Ifx_P *  port,
uint8  pinIndex,
uint16  mask 
)

Return the port group state.

Parameters
portPointer to the port which should be accessed.
pinIndexstart at the given pin
maskselects the pins which should be read (starting from pinIndex)
Returns
Returns the selected pin values

Coding example:

// read the current value of P33[7:0]
uint16 value = IfxPort_getGroupState(&MODULE_P33, 0, 0xff);

Definition at line 524 of file IfxPort.h.

IFX_EXTERN sint32 IfxPort_getIndex ( Ifx_P *  port)

Return port index within IfxModule_IndexMap (defined in IfxPort_cfg.c)

Parameters
portPointer to the port for which the index number in IfxModule_IndexMap should be retrieved.
Returns
port index of IfxModule_IndexMap. return -1 in case of unknown portIndex.

Definition at line 79 of file IfxPort.c.

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.

Parameters
portPointer to the port which should be accessed.
pinIndexstart at the given pin
maskselects the pins which should be modified (starting from pinIndex)
modeSpecifies the port pin mode.
Returns
None

Coding example:

// configure P33.[7:0] as GPIO inputs with Pull-Down enabled

Definition at line 116 of file IfxPort.c.

Referenced by IfxCif_Cam_initPortPins().

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.

Parameters
portPointer to the port which should be accessed.
pinIndexstart at the given pin
maskselects the pins which should be modified (starting from pinIndex)
modeSpecifies the port pin mode.
indexSpecifies the alternate (or general purpose) output channel.
Returns
None

Coding example:

// configure P33.[7:0] as GPIO outputs

Definition at line 154 of file IfxPort.c.

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.

Parameters
portPointer to the port which should be accessed.
pinIndexstart at the given pin
maskselects the pins which should be modified (starting from pinIndex)
padDriverSpecifies the pad driver strength.
Returns
None

Coding example:

// configure P33.[7:0] to use CMOS pad driver with speed 1

Definition at line 192 of file IfxPort.c.

Referenced by IfxCif_Cam_initPortPins().

IFX_INLINE void IfxPort_setGroupState ( Ifx_P *  port,
uint8  pinIndex,
uint16  mask,
uint16  data 
)

Set the port group state.

Parameters
portPointer to the port which should be accessed.
pinIndexstart at the given pin
maskselects the pins which should be modified (starting from pinIndex)
dataspecifies the value which should be set
Returns
None

Coding example:

// configure P33.[7:0] as GPIO outputs
// set initial value
IfxPort_setGroupState(&MODULE_P33, 0, 0xff, 0x42);

Definition at line 536 of file IfxPort.h.

IFX_EXTERN void IfxPort_setPinModeLvdsHigh ( Ifx_P *  port,
uint8  pinIndex,
IfxPort_Mode  mode,
IfxPort_ControlledBy  enablePortControlled 
)

set LVDSH mode (configured for Port21)

Parameters
portPointer to the port which should be accessed.
pinIndexspecifies pin to be modified
modespecifes the mode of pin
enablePortControlledspecifies whether it is controlled by port or HSCT
Returns
None

Definition at line 287 of file IfxPort.c.

IFX_EXTERN void IfxPort_setPinModeLvdsMedium ( Ifx_P *  port,
uint8  pinIndex,
IfxPort_PadDriver  lvdsPadDriver,
IfxPort_PadSupply  padSupply 
)

set LVDSM mode

Parameters
portPointer to the port which should be accessed.
pinIndexspecifies pin to be modified
lvdsPadDriverselect speed grade of LVDS Pad
padSupplyselect the PAD supply (5/3.3V)
Returns
None

Definition at line 269 of file IfxPort.c.