A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/stm32duino/Arduino_Core_STM32/wiki/LIS3MDL below:

LIS3MDL · stm32duino/Arduino_Core_STM32 Wiki · GitHub

Arduino library to support the LIS3MDL high-performance 3-axis magnetometer.

  • LIS3MDLSensor(TwoWire*, uint8_t): class constructor
    Params pointer to the I2C instance
    Params (optional) address of the component's instance

  • Enable: enable sensor
    Returns LIS3MDL_STATUS_OK in case of success, an error code otherwise

  • Disable: disable sensor
    Returns LIS3MDL_STATUS_OK in case of success, an error code otherwise

  • ReadID(uint8_t*): read ID address
    Params pointer where store the ID of the device
    Returns LIS3MDL_STATUS_OK in case of success, an error code otherwise

  • GetAxes(int32_t*): read magnetometer data
    Params pointer where to store data
    Returns LIS3MDL_STATUS_OK in case of success, an error code otherwise

  • GetSensitivity(float*): read magnetometer sensitivity
    Params pointer where to store data
    Returns LIS3MDL_STATUS_OK in case of success, an error code otherwise

  • GetAxesRaw(int16_t*): read magnetometer raw data
    Params pointer where to store data
    Returns LIS3MDL_STATUS_OK in case of success, an error code otherwise

  • GetODR(float*): get the output data rate mode
    Params pointer where to store data
    Returns LIS3MDL_STATUS_OK in case of success, an error code otherwise

  • SetODR(float): set the output data rate mode
    Params data rate to be set
    Returns LIS3MDL_STATUS_OK in case of success, an error code otherwise

  • GetFS(float*): get the magnetometer full scale
    Params pointer where to store data
    Returns LIS3MDL_STATUS_OK in case of success, an error code otherwise

  • SetFS(float): set the magnetometer full scale
    Params full scale to be set
    Returns LIS3MDL_STATUS_OK in case of success, an error code otherwise

  • ReadReg(uint8_t, uint8_t*): read data from register
    Params register address
    Params pointer to register data
    Returns LIS3MDL_STATUS_OK in case of success, an error code otherwise

  • WriteReg(uint8_t, uint8_t): write data to register
    Params register address
    Params register data
    Returns LIS3MDL_STATUS_OK in case of success, an error code otherwise


  • RetroSearch is an open source project built by @garambo | Open a GitHub Issue

    Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

    HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4