blob: 6167f73bbb426ab8f734ddefa2b057ab77d371a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include "hmc5883.h"
extern int file;
extern void bus_err(int ern);
extern void print_help(void);
unsigned char buf[5];
void hmc5883_print_all(void)
{
printf(
"00: Temperature data [°C] (reg: 0x00)\n"
"01: Configuration [hex] (reg: 0x01)\n"
"02: Tos (Overtemp) [°C] (reg: 0x03)\n"
"03: Thys (Hysteresis) [°C] (reg: 0x04)\n"
"\n");
}
void hmc5883_read_all(const char *opts) {}
void hmc5883_read_one(const char *opts) {}
void hmc5883_conf_set(const char *opts){}
|