UM1753
3.7
STLUX385A general purpose I/O (stlux_gpio)
Header
GPIO_Reset
GPIO_Init
GPIO_Write
GPIO_WriteHigh
GPIO_WriteLow
GPIO_WriteReverse
GPIO_ReadInputData
GPIO_ReadOutputData
GPIO_ReadInputPin
GPIO_ExternalPullUpConfig
Table 7. STLUX385A general purpose I/O
Input parameters
GPIOx specifies the GPIO peripheral
number.
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.
GPIOx specifies the GPIO peripheral
number.
PortVal specifies the value to be written to
the port output.
GPIOx specifies the GPIO peripheral
number.
PortPins specifies the pins to be turned high
to the port output
GPIOx specifies the GPIO peripheral
number.
PortPins specifies the pins to be turned low
to the port output.
GPIOx specifies the GPIO peripheral
number.
PortPins specifies the pins to be reversed to
the port output.
GPIOx specifies the GPIO peripheral
number
GPIOx specifies the GPIO peripheral
number.
GPIOx specifies the GPIO peripheral
number.
GPIO_Pin specifies the pins to be read
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.
DocID026248 Rev 1
STLUX library
Output
Functionality
parameters
Sets the GPIOx internal
registers to their default
initialization values.
Initializes the GPIOx
according to the
specified parameters.
Writes data to the
specified GPIO data
Sets high level to the
specified GPIO pins.
Sets low level to the
specified GPIO pins.
Writes reverse level to
the specified GPIO
This function
Reads the specified
returns the
GPIO input data port.
read value.
This function
Reads the specified
returns the
GPIO output data port.
read value.
Reads the specified
BitStatus
GPIO input data pin.
Configures the external
pull-up on GPIOx pins.
port.
pins.
15/21
21
Need help?
Do you have a question about the STLUX385A and is the answer not in the manual?