aboutsummaryrefslogtreecommitdiffstats
path: root/src/hmc5883.c
blob: d45e97243c83a2055ea1c6bca365fa6f190390d6 (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
30
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>


#include "hmc5883.h" 
#include "deftypes.h"

extern uint16 devicef;
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 uchar *opts) {}
void hmc5883_read_one(const uchar *opts) {}
void hmc5883_conf_set(const uchar *opts){}