Sensor Fusion Library 0.6.1
Orientation sensing for Espressif (ESP32, ESP8266) processors
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations
driver_sensors_types.h File Reference

The driver_sensors_types.h file contains sensor state structs and error definitions. More...

#include <stdint.h>
Include dependency graph for driver_sensors_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  registerwritelist_t
 This structure defines the Write command List. More...
 
struct  registerReadlist_t
 This structure defines the Read command List. More...
 
struct  registerDeviceInfo_t
 This structure defines the device specific info required by register I/O. More...
 

Macros

#define SENSOR_MAX_REGISTER_COUNT   128 /* As per 7-Bit address. */
 
#define __END_WRITE_DATA__
 
#define __END_READ_DATA__
 
#define __END_WRITE_CMD__
 

Typedefs

typedef enum EWriteFlags EWriteFlags_t
 
typedef void(* registeridlefunction_t) (void *userParam)
 This is the register idle function type.
 

Enumerations

enum  EWriteFlags { WRITE_OVERWRITE = 0 , WRITE_MASK = 1 }
 
enum  ESensorErrors {
  SENSOR_ERROR_NONE = 0 , SENSOR_ERROR_INVALID_PARAM , SENSOR_ERROR_BAD_ADDRESS , SENSOR_ERROR_INIT ,
  SENSOR_ERROR_WRITE , SENSOR_ERROR_READ
}
 

Detailed Description

The driver_sensors_types.h file contains sensor state structs and error definitions.

Definition in file driver_sensors_types.h.

Macro Definition Documentation

◆ __END_READ_DATA__

#define __END_READ_DATA__
Value:
{ \
.readFrom = 0xFFFF, .numBytes = 0 \
}

Definition at line 54 of file driver_sensors_types.h.

◆ __END_WRITE_CMD__

#define __END_WRITE_CMD__
Value:
{ \
.writeTo = 0xFFFF, .numBytes = 0 \
}

Definition at line 60 of file driver_sensors_types.h.

◆ __END_WRITE_DATA__

#define __END_WRITE_DATA__
Value:
{ \
.writeTo = 0xFFFF, .value = 0 \
}

Definition at line 48 of file driver_sensors_types.h.

◆ SENSOR_MAX_REGISTER_COUNT

#define SENSOR_MAX_REGISTER_COUNT   128 /* As per 7-Bit address. */

Definition at line 45 of file driver_sensors_types.h.

Typedef Documentation

◆ registeridlefunction_t

typedef void(* registeridlefunction_t) (void *userParam)

This is the register idle function type.

Definition at line 90 of file driver_sensors_types.h.

Enumeration Type Documentation

◆ ESensorErrors

enum ESensorErrors

Definition at line 34 of file driver_sensors_types.h.

◆ EWriteFlags

enum EWriteFlags

Definition at line 27 of file driver_sensors_types.h.