bh1750fvi_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef BH1750FVI_INTERNAL_H
20 #define BH1750FVI_INTERNAL_H
21 
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
34 #define RES_DIV (78642)
35 
40 #define OP_POWER_DOWN (0x00)
41 #define OP_POWER_ON (0x01)
42 #define OP_RESET (0x03)
43 #define OP_CONT_HRES1 (0x10)
44 #define OP_CONT_HRES2 (0x11)
45 #define OP_CONT_LRES (0x13)
46 #define OP_SINGLE_HRES1 (0x20)
47 #define OP_SINGLE_HRES2 (0x21)
48 #define OP_SINGLE_LRES (0x23)
49 #define OP_CHANGE_TIME_H_MASK (0x40)
50 #define OP_CHANGE_TIME_L_MASK (0x60)
51 
57 #define DELAY_HMODE (120000)
58 #define DELAY_LMODE (16000)
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif /* BH1750FVI_INTERNAL_H */
67