LibDriver OPT300X
Loading...
Searching...
No Matches
driver_opt300x_basic.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_OPT300X_BASIC_H
38#define DRIVER_OPT300X_BASIC_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
52
56#define OPT3002_BASIC_DEFAULT_RANGE OPT3002_RANGE_AUTO
57#define OPT3005_BASIC_DEFAULT_RANGE OPT3005_RANGE_AUTO
58#define OPT300X_BASIC_DEFAULT_RANGE OPT300X_RANGE_AUTO
59#define OPT300X_BASIC_DEFAULT_CONVERSION_TIME OPT300X_CONVERSION_TIME_800_MS
60#define OPT300X_BASIC_DEFAULT_MASK_EXPONENT OPT300X_BOOL_FALSE
61#define OPT300X_BASIC_DEFAULT_FAULT_COUNT OPT300X_FAULT_COUNT_ONE
62
72uint8_t opt300x_basic_init(opt300x_t type, opt300x_address_t addr_pin);
73
81uint8_t opt300x_basic_deinit(void);
82
91uint8_t opt300x_basic_read(float *lux);
92
101uint8_t opt3002_basic_read(float *nw_cm2);
102
106
107#ifdef __cplusplus
108}
109#endif
110
111#endif
driver opt300x interface header file
opt300x_address_t
opt300x address enumeration definition
opt300x_t
opt300x type enumeration definition
uint8_t opt300x_basic_read(float *lux)
basic example read
uint8_t opt300x_basic_init(opt300x_t type, opt300x_address_t addr_pin)
basic example init
uint8_t opt300x_basic_deinit(void)
basic example deinit
uint8_t opt3002_basic_read(float *nw_cm2)
basic example read