Thunderboard Sense 2 Support

Description

Board support functions for Thunderboard Sense 2 (BRD4166A)

The Thunderboard Sense 2 has several I2C buses connecteded to the various sensors that are all connected to the EFR32. This module provides functions to route pin connections of an I2C peripheral to the various I2C buses. This allows time multiplexed access to several I2C buses using only one I2C peripheral.

Functions

sl_status_t sl_thunderboard_require_i2c ( sl_thunderboard_i2c_bus_select_t select)
Sets up the route register of the I2C device to use the correct set of pins.

Enumerations

enum sl_thunderboard_i2c_bus_select_t {
SL_THUNDERBOARD_I2C_BUS_SELECT_ENV = (1 << 0),
SL_THUNDERBOARD_I2C_BUS_SELECT_GAS = (1 << 1),
SL_THUNDERBOARD_I2C_BUS_SELECT_HALL = (1 << 2)
}
I2C bus select.

Function Documentation

sl_thunderboard_require_i2c()

sl_status_t sl_thunderboard_require_i2c ( sl_thunderboard_i2c_bus_select_t select )

Sets up the route register of the I2C device to use the correct set of pins.

  • Parameters
    [in] select The I2C bus route to use (Environmental sensors, Gas sensor, Hall sensor)
    Returns
    Returns zero on OK, non-zero otherwise

Enumeration Type Documentation

sl_thunderboard_i2c_bus_select_t

I2C bus select.

  • Environmental sensor group
    • RH/Temp (Si7021)
    • UV/ALS (Si1133)
    • Barometric Pressure (BMP280)
  • Hall effect sensor (Si7210)
  • Indoor air quality sensor (CCS811)
Enumerator
SL_THUNDERBOARD_I2C_BUS_SELECT_ENV

The I2C bus of the environmental sensors selected.

SL_THUNDERBOARD_I2C_BUS_SELECT_GAS

The I2C bus of the gas sensors selected.

SL_THUNDERBOARD_I2C_BUS_SELECT_HALL

The I2C bus of the Hall sensor selected.