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 
9 #pragma once
10 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
32 #define RES_DIV (78642)
33 
38 #define OP_POWER_DOWN (0x00)
39 #define OP_POWER_ON (0x01)
40 #define OP_RESET (0x03)
41 #define OP_CONT_HRES1 (0x10)
42 #define OP_CONT_HRES2 (0x11)
43 #define OP_CONT_LRES (0x13)
44 #define OP_SINGLE_HRES1 (0x20)
45 #define OP_SINGLE_HRES2 (0x21)
46 #define OP_SINGLE_LRES (0x23)
47 #define OP_CHANGE_TIME_H_MASK (0x40)
48 #define OP_CHANGE_TIME_L_MASK (0x60)
55 #define DELAY_HMODE (120000)
56 #define DELAY_LMODE (16000)
59 #ifdef __cplusplus
60 }
61 #endif
62