Class Tle5012Wiced

Inheritance Relationships

Base Type

Class Documentation

class Tle5012Wiced : public virtual tle5012::Tle5012b

represents a basic TLE5012b Wiced class.

represents the TLE5012 base class

This class provides a simple API for connecting Wiced/Genuio and compatible MCUs. As the default interface for the sensor is the 3wire SSC SPI interface, the default SPIClass is extended by the SPIclass3W.

This class provides a simple API for connecting the TLE5012 via SSC interface, which is included into all flavours the TLE5012 sensor. This setup also works with the Sens2Kit (Sensor including XMC1100 mcu), breakout board (only the Sensor from the Sens2Kit) and bulk chip (read the section on how to connect the bulk chip via 3wire SPI).

See also

Tle5012

Public Functions

Tle5012Wiced()

Construct a new Tle5012Wiced::Tle5012Wiced object with default SPI and pin assignment. Use this if:

  • you have TLE5012B Sensor2go kit (all types)

  • attached the breakout board on the default SPI of your MCU

  • attached a bulk chip with the SSC interface to the default SPI of your MCU

Tle5012Wiced(wiced_gpio_t csPin, slaveNum slave = TLE5012B_S0)

Construct a new Tle5012Wiced::Tle5012Wiced object with chipselect and sensor slave Use this constructor if:

  • you use more than one sensor with one SPI channel (up to four are possible)

Parameters:
  • csPin – pin number of the CS pin

  • slave – optional sensor slave setting

errorTypes begin()

begin method with default assignments for the SPI bus and pin setting. The EN pin is only available for the Sensor2go kit, therefore we only set it in that case, otherwise it will be NULL.

Returns:

errorTypes

Public Members

uint8_t mSpiNum = 0

Number of used SPI channel.