LibDriver OPT300X
Loading...
Searching...
No Matches
driver_opt300x_shot.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_OPT300X_SHOT_H
38#define DRIVER_OPT300X_SHOT_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
50
54#define OPT3002_SHOT_DEFAULT_RANGE OPT3002_RANGE_AUTO
55#define OPT3005_SHOT_DEFAULT_RANGE OPT3005_RANGE_AUTO
56#define OPT300X_SHOT_DEFAULT_RANGE OPT300X_RANGE_AUTO
57#define OPT300X_SHOT_DEFAULT_CONVERSION_TIME OPT300X_CONVERSION_TIME_800_MS
58#define OPT300X_SHOT_DEFAULT_MASK_EXPONENT OPT300X_BOOL_FALSE
59#define OPT300X_SHOT_DEFAULT_FAULT_COUNT OPT300X_FAULT_COUNT_ONE
60
70uint8_t opt300x_shot_init(opt300x_t type, opt300x_address_t addr_pin);
71
79uint8_t opt300x_shot_deinit(void);
80
89uint8_t opt300x_shot_read(float *lux);
90
99uint8_t opt3002_shot_read(float *nw_cm2);
100
104
105#ifdef __cplusplus
106}
107#endif
108
109#endif
driver opt300x interface header file
opt300x_address_t
opt300x address enumeration definition
opt300x_t
opt300x type enumeration definition
uint8_t opt3002_shot_read(float *nw_cm2)
shot example read
uint8_t opt300x_shot_read(float *lux)
shot example read
uint8_t opt300x_shot_init(opt300x_t type, opt300x_address_t addr_pin)
shot example init
uint8_t opt300x_shot_deinit(void)
shot example deinit