|
MIDAS
|
#include <stdio.h>#include <stdint.h>#include <stdlib.h>#include <stdarg.h>#include <unistd.h>#include <fcntl.h>#include <string.h>#include <linux/i2c-dev.h>#include "midas.h"
Go to the source code of this file.
Classes | |
| struct | RPI_TEMP_INFO |
Macros | |
| #define | DEV_ID 0x5c |
| #define | WHO_AM_I 0x0F |
| #define | CTRL_REG1 0x20 |
| #define | CTRL_REG2 0x21 |
| #define | PRESS_OUT_XL 0x28 |
| #define | PRESS_OUT_L 0x29 |
| #define | PRESS_OUT_H 0x2A |
| #define | TEMP_OUT_L 0x2B |
| #define | TEMP_OUT_H 0x2C |
Functions | |
| INT | rpi_temp_init (HNDLE hkey, void **pinfo) |
| INT | rpi_temp_exit (RPI_TEMP_INFO *info) |
| INT | rpi_temp_get (RPI_TEMP_INFO *info, INT channel, float *pvalue) |
| INT | rpi_temp (INT cmd,...) |
| #define CTRL_REG1 0x20 |
Definition at line 36 of file rpi_temp.c.
| #define CTRL_REG2 0x21 |
Definition at line 37 of file rpi_temp.c.
| #define DEV_ID 0x5c |
Definition at line 34 of file rpi_temp.c.
| #define PRESS_OUT_H 0x2A |
Definition at line 40 of file rpi_temp.c.
| #define PRESS_OUT_L 0x29 |
Definition at line 39 of file rpi_temp.c.
| #define PRESS_OUT_XL 0x28 |
Definition at line 38 of file rpi_temp.c.
| #define TEMP_OUT_H 0x2C |
Definition at line 42 of file rpi_temp.c.
| #define TEMP_OUT_L 0x2B |
Definition at line 41 of file rpi_temp.c.
| #define WHO_AM_I 0x0F |
Definition at line 35 of file rpi_temp.c.
Definition at line 134 of file rpi_temp.c.

| INT rpi_temp_exit | ( | RPI_TEMP_INFO * | info | ) |
Definition at line 88 of file rpi_temp.c.

| INT rpi_temp_get | ( | RPI_TEMP_INFO * | info, |
| INT | channel, | ||
| float * | pvalue | ||
| ) |
Definition at line 100 of file rpi_temp.c.


Definition at line 49 of file rpi_temp.c.

