Definition of the generic [S]ensor [A]ctuator [U]ber [L]ayer. More...

Detailed Description

Definition of the generic [S]ensor [A]ctuator [U]ber [L]ayer.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file saul.h.

#include <stdint.h>
#include <errno.h>
#include "phydat.h"
+ Include dependency graph for saul.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  saul_driver_t
 Definition of the RIOT actuator/sensor interface. More...
 

Typedefs

typedef int(* saul_read_t) (const void *dev, phydat_t *res)
 Read a value (a set of values) from a device. More...
 
typedef int(* saul_write_t) (const void *dev, phydat_t *data)
 Write a value (a set of values) to a device. More...
 

Enumerations

enum  {
  SAUL_CLASS_UNDEF = 0x00, SAUL_ACT_ANY = 0x40, SAUL_ACT_LED_RGB = 0x42, SAUL_ACT_SERVO = 0x43,
  SAUL_ACT_MOTOR = 0x44, SAUL_ACT_SWITCH = 0x45, SAUL_ACT_DIMMER = 0x46, SAUL_SENSE_ANY = 0x80,
  SAUL_SENSE_BTN = 0x81, SAUL_SENSE_TEMP = 0x82, SAUL_SENSE_HUM = 0x83, SAUL_SENSE_LIGHT = 0x84,
  SAUL_SENSE_ACCEL = 0x85, SAUL_SENSE_MAG = 0x86, SAUL_SENSE_GYRO = 0x87, SAUL_SENSE_COLOR = 0x88,
  SAUL_SENSE_PRESS = 0x89, SAUL_SENSE_ANALOG = 0x8a, SAUL_SENSE_UV = 0x8b, SAUL_SENSE_OBJTEMP = 0x8c,
  SAUL_CLASS_ANY = 0xff
}
 Definition of device classes. More...
 

Functions

int saul_notsup (const void *dev, phydat_t *dat)
 Default not supported function.
 
const char * saul_class_to_str (const uint8_t class_id)
 Helper function converts a class ID to a string. More...