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

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 528 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 81 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 118 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 156 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 194 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 534 of file IfxPort.h.