DocID026248 Rev 1
15/21
UM1753
STLUX library
21
3.7 STLUX385A
general
purpose I/O (stlux_gpio)
Table 7. STLUX385A general purpose I/O
Header
Input parameters
Output
parameters
Functionality
GPIO_Reset
GPIOx specifies the GPIO peripheral
number.
Sets the GPIOx internal
registers to their default
initialization values.
GPIO_Init
GPIOx specifies the GPIO peripheral
number.
GPIO_Pin specifies the pins to be
associated to the I/O.
GPIO_Mode specifies one of the possible
GPIO configurations.
Initializes the GPIOx
according to the
specified parameters.
GPIO_Write
GPIOx specifies the GPIO peripheral
number.
PortVal specifies the value to be written to
the port output.
Writes data to the
specified GPIO data
port.
GPIO_WriteHigh
GPIOx specifies the GPIO peripheral
number.
PortPins specifies the pins to be turned high
to the port output
Sets high level to the
specified GPIO pins.
GPIO_WriteLow
GPIOx specifies the GPIO peripheral
number.
PortPins specifies the pins to be turned low
to the port output.
Sets low level to the
specified GPIO pins.
GPIO_WriteReverse
GPIOx specifies the GPIO peripheral
number.
PortPins specifies the pins to be reversed to
the port output.
Writes reverse level to
the specified GPIO
pins.
GPIO_ReadInputData
GPIOx specifies the GPIO peripheral
number
This function
returns the
read value.
Reads the specified
GPIO input data port.
GPIO_ReadOutputData
GPIOx specifies the GPIO peripheral
number.
This function
returns the
read value.
Reads the specified
GPIO output data port.
GPIO_ReadInputPin
GPIOx specifies the GPIO peripheral
number.
GPIO_Pin specifies the pins to be read
BitStatus
Reads the specified
GPIO input data pin.
GPIO_ExternalPullUpConfig
GPIOx specifies the GPIO peripheral
number.
GPIO_Pin specifies the pins to be
configured.
Newstate is the new state of the pull-up
pins. It can be ENABLE or DISABLE.
Configures the external
pull-up on GPIOx pins.