KM3NeT CLB  2.0
KM3NeT CLB v2 Embedded Software
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lsm303.h File Reference
#include "drv/wb/i2c.h"
#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  Lsm303Axis_
 Axis structure for 3D information. More...
 

Typedefs

typedef struct Lsm303Axis_ Lsm303Axis
 Axis structure for 3D information.
 

Functions

static uint16_t _lsm303RawDataToI16 (uint8_t *data)
 Function shared for both LSM303 drivers. More...
 
void _lsm303RawDataToAxis (uint8_t *data, Lsm303Axis *axis)
 Internal function shared for both LSM303 drivers. More...
 
bool _lsm303RmwReg (I2C_Device *dev, uint8_t addr, uint8_t reg, uint8_t val, uint8_t mask)
 Internal function shared for both LSM303 drivers. More...
 

Detailed Description

Date
19 jun. 2019
Author
V. van Beveren

Common structures shared over both LSM303* devices.

Definition in file lsm303.h.

Function Documentation

void _lsm303RawDataToAxis ( uint8_t *  data,
Lsm303Axis axis 
)

Internal function shared for both LSM303 drivers.

Do not use.

Definition at line 15 of file lsm303.c.

static uint16_t _lsm303RawDataToI16 ( uint8_t *  data)
inlinestatic

Function shared for both LSM303 drivers.

Do not use.

Definition at line 41 of file lsm303.h.

bool _lsm303RmwReg ( I2C_Device dev,
uint8_t  addr,
uint8_t  reg,
uint8_t  val,
uint8_t  mask 
)

Internal function shared for both LSM303 drivers.

Do not use.

Definition at line 22 of file lsm303.c.