Download rcX - Hilscher Knowledge Base

Transcript
Configuring the Hardware Platform and the Resources
5.13.1
The RX_GPIO_SET_T
Reference
60/94
General Purpose I/O Object Structure
Each entry in the General Purpose I/O Configuration Table is defined as follows:
typedef struct RX_GPIO_SET_Ttag
{
RX_PERIPHERAL_HEADER_T tCfgHd;
UINT
RX_GPIO_TYPE
RX_GPIO_POLARITY
RX_GPIO_MODE
RX_GPIO_COUNTER
BOOLEAN
UINT
} RX_GPIO_SET_T;
uGpioNum;
eTyp;
ePol;
eMod;
eCntRef;
fIrq;
uThrHldCptr;
Structure Elements
Element
Description
tCfgHd
Peripheral Header Information structure
uGpioNum
Physical GPIO Port Number.
eTyp
GPIO Type.
Possible settings:
RX_GPIO_TYPE_INPUT - Define the GPIO as an input
RX_GPIO_TYPE_OUTPUT - Defines the GPIO as an output
RX_GPIO_TYPE_EXT0_MODE - Set GPIO to extended configuration mode 0 (UART)
RX_GPIO_TYPE_EXT1_MODE - Set GPIO to extended configuration mode 1 (reserved)
ePol
GPIO Default Pin Polarity.
Possible settings:
RX_GPIO_POLARITY_NORMAL = 0 (high active)
RX_GPIO_POLARITY_INVERTED = 1 (low active)
eMod
Enhanced GPIO Mode.
Input Mode:
RX_GPIO_INPUTMODE_STANDARD - GPIO is a standard input
RX_GPIO_INPUTMODE_CAPTURED_CONTINUED - Captures the selected reference counter
to the corresponding threshold register at every rising / falling edge (defined by ePol) on the
GPIO pin.
RX_GPIO_INPUTMODE_CAPTURED_ONCE - Captures the selected reference counter once
to the corresponding threshold register at a rising / falling edge (defined by ePol) on the GPIO
pin.
RX_GPIO_INPUTMODE_CAPTURED_LEVEL - Captures the selected reference counter to the
corresponding threshold register as long as the GPIO pin has the level defined by ePol. The pin
is sampled using the IO clock frequency.
Output Mode:
RX_GPIO_OUTPUTMODE_STANDARD_0 - GPIO operates as a standard output. Default
output value = 0.
RX_GPIO_OUTPUTMODE_STANDARD_1 - GPIO operates as standard output. Default output
value = 1.
RX_GPIO_OUTPUTMODE_LINE - Set the GPIO pin into line mode, so it can be driven via the
GPIO line register.
RX_GPIO_OUTPUTMODE_PWM - Set the GPIO into pulse width modulation mode.
rcX - Realtime Communication System for netX | Configuration of rcX
DOC050601OS08EN | Revision 8 | English | 2013-06 | Released | Public
© Hilscher, 2005-2013