Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: HelloWorld_6180XA1 SunTracker_BLE Servo_6180XA1 BLE_HR_Light ... more
Fork of X_NUCLEO_6180XA1 by
Misc functions
[ALS functions]
Misc functions. More...
Functions | |
| int | set_group_param_hold (int Hold) |
| Set Group parameter Hold state. | |
| int | set_i2c_address (int NewAddr) |
| Set new device i2c address. | |
| int | setup_gpio_x (int pin, uint8_t IntFunction, int ActiveHigh) |
| Fully configure gpio 0/1 pin : polarity and functionality. | |
| int | set_gpio_x_polarity (int pin, int active_high) |
| Set interrupt pin polarity for the given GPIO. | |
| int | set_gpio_x_functionality (int pin, uint8_t functionality) |
| Select interrupt functionality for the given GPIO. | |
| int | disable_gpio_x_out (int pin) |
| brief Disable and turn to Hi-Z gpio output pin | |
Detailed Description
Misc functions.
Function Documentation
| int disable_gpio_x_out | ( | int | pin ) | [inherited] |
| int set_gpio_x_functionality | ( | int | pin, |
| uint8_t | functionality | ||
| ) | [inherited] |
Select interrupt functionality for the given GPIO.
- Function Description
- Functionality refer to SYSTEM_MODE_GPIO0
- Parameters:
-
pin Pin to configure 0 or 1 (_gpio0 or gpio1) that _gpio0 is chip enable at power up ! functionality Pin functionality : either GPIOx_SELECT_OFF or GPIOx_SELECT_GPIO_INTERRUPT_OUTPUT (refer to SYSTEM_MODE_GPIO1 register definition)
- Returns:
- 0 on success
| int set_gpio_x_polarity | ( | int | pin, |
| int | active_high | ||
| ) | [inherited] |
| int set_group_param_hold | ( | int | Hold ) | [inherited] |
Set Group parameter Hold state.
- Function Description
- Group parameter holds SYSTEM_GROUPED_PARAMETER_HOLD enable safe update (non atomic across multiple measure) by host
The critical register group is composed of:
SYSTEM_INTERRUPT_CONFIG_GPIO
SYSRANGE_THRESH_HIGH
SYSRANGE_THRESH_LOW
SYSALS_INTEGRATION_PERIOD
SYSALS_ANALOGUE_GAIN
SYSALS_THRESH_HIGH
SYSALS_THRESH_LOW
- Parameters:
-
Hold Group parameter Hold state to be set (on/off)
- Returns:
- 0 on success
| int set_i2c_address | ( | int | NewAddr ) | [inherited] |
| int setup_gpio_x | ( | int | pin, |
| uint8_t | IntFunction, | ||
| int | ActiveHigh | ||
| ) | [inherited] |
Fully configure gpio 0/1 pin : polarity and functionality.
- Parameters:
-
pin gpio pin 0 or 1 IntFunction Pin functionality : either GPIOx_SELECT_OFF or GPIOx_SELECT_GPIO_INTERRUPT_OUTPUT (refer to SYSTEM_MODE_GPIO1 register definition) ActiveHigh Set active high polarity, or active low see IntrPol_e
- Returns:
- 0 on success
Generated on Wed Jul 13 2022 23:03:14 by
1.7.2

X-NUCLEO-6180XA1 Proximity and Ambient Light Sensor